import api from './request_api'
type User = {
	username: string,
	password: string
}
export const Loginuser = (user: User) => api.post('/auth/login', user)

// 获取用户信息
export const Getusermsg = () => api.get('/users/profile')
// 退出登录
export const logout = (user: Object) => api.post('/auth/logout', user)